class Book < ActiveRecord::Base
  acts_as_taggable

  belongs_to :publish
  belongs_to :book_status
  has_many :in_records
  has_one :out_record
  has_many :orders
  
  validates_uniqueness_of :lt_code
  validates_uniqueness_of :book_name
  validates_presence_of :book_name
  validates_presence_of :lt_code
end
